package com.timon.gpsfollow;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.ListView;
import com.timon.gpsfollow.com.timon.utils.GKIMLog;
import com.timon.gpsfollow.layout.PointAdapter;

/**
 * Created by Timon on 4/10/2014.
 */
public class OnMapActivity extends FragmentActivity {

    private static final String TAG = OnMapActivity.class.getSimpleName();
    private ListView mLvPoints;
    private PointAdapter mPointAdapter;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_point_on_map);

        initLayout();
    }

    private void initLayout() {
        GKIMLog.lf(this, 1, TAG + "=>initLayout");
        mLvPoints = (ListView) findViewById(android.R.id.list);
        mPointAdapter = new PointAdapter(this);
        mPointAdapter.addPoint(1.00343f, 2.03423f);
        mPointAdapter.addPoint(1.00343f, 2.03423f);
        mPointAdapter.addPoint(1.00343f, 2.03423f);
        mPointAdapter.addPoint(1.00343f, 2.03423f);
        mPointAdapter.addPoint(1.00343f, 2.03423f);
        mLvPoints.setAdapter(mPointAdapter);
    }
}